package com.five.system.mapper;

import com.five.basic.mapper.BaseMapper;
import com.five.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    void deleteRoleUsers(Long id);

    void deleteRoleMenus(Long id);

    void deleteRolePermissions(Long id);

    void deleteBatchRoleMenus(List<Long> ids);

    void deleteBatchRoleUsers(List<Long> ids);

    void deleteBatchRolePermissions(List<Long> ids);

    void addRoleMenus(Long id, List<Long> menus);

    void addRolePermissions(Long id, List<Long> permissions);
}
